﻿<?php
	
	require_once $_SERVER['DOCUMENT_ROOT'] . "/chimera/dao/ConteudoDAO.class.php";
	
	$action = $_GET['action'];
		
	if($action == 2445){
		edit::editConteudo();
	}
	
	class edit{
    	
		public function editConteudo(){
			
			$idconteudo = $_GET['append'];
			$categoria = $_GET['match'];
			$assunto = $_POST['assunto'];
			$conteudo = $_POST['conteudo'];
			$tags = $_POST['tags'];
			
			$conteudodao = new ConteudoDAO();
			$conteudodao->edit($assunto, $conteudo, $idconteudo, $categoria, $tags);
			
		}
		    
    }
	
?>